package com.hexinfo.dmpro.data.transfer.common.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@AllArgsConstructor
public enum DataTransferTypeEnum {

    DEV("开发数据同步", "DEV"),

    OFFLINE("离线数据同步", "OFFLINE");

    @Getter
    private final String name;

    @Getter
    private final String value;

    public static List<String> getValues() {
        return Arrays.stream(DataTransferTypeEnum.values()).map(DataTransferTypeEnum::getValue).collect(Collectors.toList());
    }
}
